﻿using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using CardLib;
using System.ComponentModel;

namespace CardLib
{
    public class HandCards:Cards
    {

        public CardRank Rank { get; private set; }

        public int Style { get; private set; }

        #region Constructor
        public HandCards()
        {
            Rank = CardRank.Three;
            Style = 0;
            this.OnChange += new System.ComponentModel.ListChangedEventHandler(AllCards_OnChange);
        }

        #endregion

        public void Arrange()
        {
            this.Sort();
        }

        private void AllCards_OnChange(object sender, ListChangedEventArgs e)
        {
            this.Arrange();
        }


    }

}
